class Animal(object):
    def __init__(self, name, age):
        self.name = name
        self.age = age

    @staticmethod
    def __private():
        print('this is a private method')


class Person(Animal):
    @staticmethod
    def __private_person():
        print('this is a private method in Person')


p = Person('tom', 14)
p._Person__private_person()
# p.__private()  false
# p._Person__private()  false
p._Animal__private()

# 私有属性和方法，子类不能继承
# 但是可以通过父类调用：<sub_object>._<father_class_name><private_method_name>
